﻿namespace MyModels.ViewModels
{
    public class SysUserInfoDto
    {
        public long uId { get; set; }
        public List<long> RIds { get; set; }
        public string uRealName { get; set; }

        public List<Permissions>  Permissions { get; set; }


        //public string uLoginName { get; set; }
        public string uLoginPWD { get; set; }

        // public int uStatus { get; set; }
        //public long DepartmentId { get; set; }
        //public string uRemark { get; set; }
        //public DateTime uCreateTime { get; set; } = DateTime.Now;
        //public DateTime uUpdateTime { get; set; } = DateTime.Now;
        //public DateTime uLastErrTime { get; set; } = DateTime.Now;
        //public int uErrorCount { get; set; }
        //public string name { get; set; }
        //public int sex { get; set; } = 0;
        //public int age { get; set; }
        //public DateTime birth { get; set; } = DateTime.Now;
        //public string addr { get; set; }
        //public bool tdIsDelete { get; set; }
        //public List<string> RoleNames { get; set; }
        //public List<long> Dids { get; set; }
        //public string DepartmentName { get; set; }
    }

    public class Permissions
    {
        public long Id { get; set; }
        public long Pid { get; set; }
        public string Code { get; set; }
        public string Name { get; set; }
        public bool IsHide { get; set; }
        public bool IsButton { get; set; }
        public string Func { get; set; }
        public string Icon { get; set; }
    }
}
